.variable-form-container {
  width: 100%;
}

.variable-form-container .ant-card-head {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.unsaved-indicator {
  color: #faad14;
  font-size: 18px;
  margin-left: 8px;
}

.variable-form {
  padding: 0;
}

.variable-form .ant-form-item {
  margin-bottom: 16px;
}

.variable-form .ant-form-item-label {
  font-weight: 500;
}

.variable-form .ant-form-item-label > label {
  height: auto;
}

.error-list {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style: disc;
}

.error-list li {
  color: #ff4d4f;
  line-height: 1.5;
}

.form-actions {
  margin-bottom: 0;
  text-align: center;
}

/* 变量建议 */
.variable-suggestions {
  margin-top: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 4px;
}

.suggestion-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-name {
  font-weight: 500;
  color: #262626;
  min-width: 100px;
}

.suggestion-tag {
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #d9d9d9;
}

.suggestion-tag:hover {
  background: #e6f7ff;
  border-color: #1890ff;
  color: #1890ff;
  transform: translateY(-1px);
}

/* 分组标题 */
.ant-divider-horizontal.ant-divider-with-text-left {
  margin: 16px 0 12px;
  font-size: 14px;
  color: #8c8c8c;
}

.ant-divider-horizontal.ant-divider-with-text-left:first-child {
  margin-top: 0;
}

/* 输入控件样式 */
.variable-form .ant-input,
.variable-form .ant-input-number,
.variable-form .ant-select {
  width: 100%;
}

.variable-form .ant-input-number-input {
  width: 100%;
}

.variable-form textarea.ant-input {
  resize: vertical;
  min-height: 32px;
}

/* Switch样式 */
.variable-form .ant-switch {
  margin-right: 8px;
}

/* AutoComplete样式 */
.variable-form .ant-select-auto-complete {
  width: 100%;
}

.variable-form .ant-select-dropdown {
  max-height: 200px;
  overflow-y: auto;
}

/* 必需标签 */
.ant-tag-red {
  font-size: 10px;
  padding: 0 4px;
  height: 16px;
  line-height: 14px;
  margin-left: 4px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .suggestion-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .suggestion-name {
    min-width: auto;
  }
  
  .variable-form .ant-col {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* 水平布局样式 */
.variable-form.ant-form-horizontal .ant-form-item-label {
  flex: 0 0 120px;
}

.variable-form.ant-form-horizontal .ant-form-item-control {
  flex: 1;
}

/* 加载状态 */
.variable-form-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* 空状态 */
.variable-form-container .ant-empty {
  margin: 40px 0;
}

/* 工具提示图标 */
.anticon-info-circle {
  cursor: help;
}

/* 表单验证错误样式 */
.variable-form .ant-form-item-has-error .ant-input,
.variable-form .ant-form-item-has-error .ant-input-number,
.variable-form .ant-form-item-has-error .ant-select-selector {
  border-color: #ff4d4f;
}

.variable-form .ant-form-item-explain-error {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
}

/* 按钮组样式 */
.form-actions .ant-space {
  width: 100%;
  justify-content: center;
}

.form-actions .ant-btn {
  min-width: 100px;
}

/* 复制/导入按钮 */
.ant-card-extra .ant-btn-sm {
  padding: 0 8px;
  height: 24px;
  font-size: 12px;
}

/* 变量数量标签 */
.ant-tag-blue {
  background: #e6f7ff;
  border-color: #91d5ff;
  color: #1890ff;
  font-size: 12px;
}

/* 滚动条样式 */
.variable-form-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.variable-form-container::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 3px;
}

.variable-form-container::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

.variable-form-container::-webkit-scrollbar-track {
  background: transparent;
}

/* 动画效果 */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.unsaved-indicator {
  animation: pulse 2s infinite;
}

/* 高亮效果 */
.variable-form .ant-form-item:hover {
  background: rgba(24, 144, 255, 0.02);
  border-radius: 4px;
  transition: background 0.3s ease;
}

/* 焦点样式 */
.variable-form .ant-input:focus,
.variable-form .ant-input-number:focus,
.variable-form .ant-select-focused .ant-select-selector {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 禁用状态 */
.variable-form .ant-input[disabled],
.variable-form .ant-input-number-disabled,
.variable-form .ant-select-disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}